package ooday01;
/** Person家族测试类 */
public class ExtendTest {
    public static void main(String[] args) {
        Student zg = new Student();
        zg.name ="张光";
        zg.age = 23;
        zg.address = "廊坊";
        zg.className = "jsd2507";
        zg.stuId = "001";
        zg.sayHi();
        zg.eat();
        zg.sleep();
        zg.study();

        Student ll = new Student("李林",22,"佳木斯","jsd2507","帅哥");
        ll.sayHi();
        ll.eat();
        ll.sleep();
        ll.study();

        Teacher ww = new Teacher("王伟",24,"陕西",60000);
        ww.sayHi();
        ww.eat();
        ww.sleep();
        ww.teach();

        Doctor dz = new Doctor("dz",26,"安徽","主治医生");
        dz.sayHi();
        dz.eat();
        dz.sleep();
        dz.cut();


        Person p = new Person();
        p.name = "人";
        p.address = "山西";
        p.age = 56;
        p.sayHi();
        p.sleep();
        p.eat();











    }
}
